package com.dhj.jvmstudy.chapter06;

/**
 * 静态引用对应的对象实体始终都存在堆空间中
 * jdk7:
 * -Xms20m -Xmx200m -XX:PermSize=300m -XX:MaxPermSize=300m -XX:+PrintGCDetails
 * jdk8:
 * -Xms20m -Xmx200m -XX:MetaspaceSize=300m -XX:MaxMetaspaceSize=300m -XX:+PrintGCDetails
 */
public class StaticFieldTest {
    private static byte[] arr = new byte[1024 * 1024 * 100];

    public static void main(String[] args) throws InterruptedException {
        System.out.println(StaticFieldTest.arr);

        //Thread.sleep(10000000);
    }

}
